package day13.KeJian;

import java.util.Properties;
import java.util.Set;

public class PropertiesDemo01 {
    public static void main(String[] args) {
        //创建集合对象
//        Properties<String,String> prop = new Properties<String,String>(); //错误
        Properties por = new Properties();

        //存储元素
        por.put("heima001","王某某");
        por.put("heima002","李某某");
        por.put("heima003","赵某某");
        //遍历集合
        Set<Object> keySet = por.keySet();
        for (Object key : keySet) {
            Object value = por.get(key);
            System.out.println(key+","+value);
        }
    }
}
